| static HRESULT CreateClassFiles(const wchar_t* name, IDispatchPtr dispatch, const wchar_t* nameSpace) Creates a class (header file and source file) from a IDispatch interface (name is for display purposes only)
|
| static HRESULT GetTypeInfoData(IDispatchPtr dispatch, Com::TypeInfoData& tid) Returns the list of functions from a IDispatch interface
|
| static HRESULT GetTypeInfoText(const wchar_t* name, IDispatchPtr dispatch, list<wstring >& result) Returns text representing the list of functions and enums from a IDispatch interface (name is for display purposes only)
|
| static HRESULT GetTypeLibData(ITypeLibPtr typeLib, Com::TypeLibData& out_data) Given a ITypeLib interface it creates a list of the interfaces, and enums in the library Each interface has a list of functions (Each function has a vector of parameters) Each enum has a list of values
|
| static HRESULT GetTypeLibHelp(REFCLSID clsidTypeLib, WORD version, WORD subversion, wstring& out_help, wstring& out_helpFile) Returns the help string and help file associated with a TypeLib
|
| static HRESULT GetUserDefinedInfo(ITypeInfoPtr typeInfo, HREFTYPE hreftype, Com::FuncParam& param) Given a ITypeInfo interface returns if it is an enum or an IDispatch and the name
|
| static HRESULT ImportComLibrary(const wchar_t* path, Com::TypeLibData& typeLibData) Creates a class (header file and source file) from a Com::TypeLibData object path is the path where the header and source files will be created out_libName returns the name of the library
|
| static HRESULT ImportComLibraryFromFile(const wchar_t* path, const wchar_t* filename, wstring& out_libName) Creates a class (header file and source file) from a tlb, olb or dll file path is the path where the header and source files will be created out_libName returns the name of the library
|
| static HRESULT ImportComLibraryFromProgID(const wchar_t* path, const wchar_t* progID, wstring& out_libName) Creates a class (header file and source file) from a progID path is the path where the header and source files will be created out_libName returns the name of the library
|
| static HRESULT ReadCoClass(ITypeInfoPtr typeInfo, Com::TypeInfoData& tid) Fills the tid.iid
|
| static HRESULT ReadDispatch(ITypeInfoPtr typeInfo, Com::TypeInfoData& tid) Fills the tid.iid and tid.funcList
|
| static HRESULT ReadEnum(ITypeInfoPtr typeInfo, Com::TypeInfoData& tid) Fills the tid.iid and tid.enumList
|
| static HRESULT ReadRecord(ITypeInfoPtr typeInfo, Com::TypeInfoData& tid) Fills the tid.iid
|
| static HRESULT ReadTypeLibFromFile(const wchar_t* filename, Com::TypeLibData& out_data) Given a tlb, old, or dll file it creates a list of the interfaces, and enums in the library Each interface has a list of functions (Each function has a vector of parameters) Each enum has a list of values
|
| static HRESULT ReadTypeLibFromProgID(const wchar_t* progID, Com::TypeLibData& out_data) Given a ProgID it creates a list of the interfaces, and enums in the library Each interface has a list of functions (Each function has a vector of parameters) Each enum has a list of values
|
| static bool FindNameFromClsid(TypeLibData& typeLibData, REFCLSID clsid, wstring& out_name) |
| static bool FindNameFromIid(TypeLibData& typeLibData, REFIID iid, wstring& out_name) |
| static bool GetTypeInfoData(HWND hWnd, const wchar_t* progId, Com::TypeInfoData& tid) Given a ProgID or a ClassID in the format {...}, it returns the list of functions and enums
|
| static bool IsCoClassName(TypeLibData& typeLibData, const wstring& name) |
| static bool IsComLibraryInstalled(const wchar_t* clsidString) if clsidString = L"AcroPDF.PDF.1", the function returns true if the Acrobar Reader ActiveX is installed
|
| static bool IsInterfaceName(TypeLibData& typeLibData, const wstring& name) |
| static int GetProgInfo(vector<Com::ProgInfo >& info, bool controlsOnly) Returns a list of ProgID reading: HKEY_CLASSES_ROOT\CLSID
|
| static void CreateClassName(const wstring& input, wstring& output) If input begins with underscore, it will remove the underscore and add an X at the end
|
| static void RenderEnumText(TypeInfoData& typeInfoData, wstring& headerContent) Appends the header file text from a TypeInfoData
|
| static void RenderFuncText(const wchar_t* nameSpace, bool earlyBinding, bool isIDispatch, TypeInfoData& typeInfoData, wstring& headerContent, wstring& sourceContent) Appends the header file text and source file text from a TypeInfoData
|
| static void ReplaceNameConflicts(wstring& in_out) Replace known name conflicts in the string
|
| ~ Assistant() |
| static DWORD Begin(HINSTANCE hInstance, ULONG reason) |
| static HRESULT RegisterComClass(HINSTANCE hInstance, REFIID libid, REFCLSID clsid, const wchar_t* companyName, const wchar_t* className, int version) |
| static HRESULT RegisterComClass(HINSTANCE hInstance, const wchar_t* libidString, const wchar_t* clsidString, const wchar_t* companyName, const wchar_t* className, int version) clsidString = L"{808FAFE1-1B3C-4013-B0BC-2B02AB788807}" companyName = L"MyCompany" version = 1
|
| static HRESULT RegisterComClass(REFIID libid, REFCLSID clsid, const wchar_t* companyName, const wchar_t* className, int version) |
| static HRESULT RegisterComClass(const wchar_t* libidString, const wchar_t* clsidString, const wchar_t* companyName, const wchar_t* className, int version) |
| static HRESULT RegisterTypeLib(HINSTANCE hInstance, REFIID libid, int version, int subversion) |
| static HRESULT RegisterTypeLib(HINSTANCE hInstance, const wchar_t* libidString, int version, int subversion) |
| static HRESULT RegisterTypeLib(REFIID libid, int version, int subversion) |
| static HRESULT RegisterTypeLib(const wchar_t* libidString, int version, int subversion) |
| static HRESULT UnRegisterComClass(REFIID libid, REFCLSID clsid) |
| static HRESULT UnRegisterComClass(const wchar_t* libidString, const wchar_t* clsidString) |
| static HRESULT UnRegisterTypeLib(REFIID libid, int version, int subversion) |
| static HRESULT UnRegisterTypeLib(const wchar_t* libidString, int version, int subversion) |
| static bool CanUnloadNow() |
| static void DecreaseLockCount() |
| static void DecreaseObjectCount() |
| static void IncreaseLockCount() |
| static void IncreaseObjectCount() |
| Exception() |
| Exception(HRESULT hr, const wchar_t* info) |
| Exception(HRESULT hr, const wchar_t* info, EXCEPINFO excepInfo, int argError) |
| Exception(const Exception& init) |
| const wchar_t* ErrorMessage() |
| static void Display(HWND hWnd, _com_error& input_error, const wchar_t* caption) |
| static void GetErrorText(_com_error& input_error, wchar_t* buffer, int buffer_len) |
| virtual ~ Exception(void) |
| void Display(HWND hWnd, const wchar_t* caption) void GetErrorText(wchar_t* buffer, int buffer_len);
|
| void Throw(const wchar_t* info, HRESULT hr) |
| void ThrowNullPointer(const wchar_t* info) |
| void ok(const wchar_t* info, HRESULT hr) |
| FuncInfo() |
| bool ExludeFunction(bool includeAllParameters) |
| bool HasGetProperty(list<Com::FuncInfo >& fi) |
| bool HasProperty(list<Com::FuncInfo >& fi) |
| bool HasPutProperty(list<Com::FuncInfo >& fi) |
| bool IsDataTypeObject(Com::FuncParam& param) |
| bool IsEnumUserDefined(Com::FuncParam& param) |
| bool IsReturnedValueBool() |
| bool RequiresConversion(int datatype) |
| bool operator <(const FuncInfo& fi) |
| const wchar_t* GetFuncTypeText() |
| static bool IsIDispatchFunction(const wchar_t* functionName) |
| static bool IsIUnknownFunction(const wchar_t* functionName) |
| static const wchar_t* GetFuncCallConvText(int callConv) |
| static const wchar_t* GetFuncTypeText(int dispatch_type) |
| static const wchar_t* GetParamTypeText(WORD vt) |
| static const wchar_t* GetParamTypeText(WORD vt, bool cppTypes) |
| static const wchar_t* GetVariantText(WORD vt) |
| static const wchar_t* GetVariantVT(WORD vt) |
| static void GetParamTypeText(bool isReturn, const wchar_t* nameSpace, bool earlyBinding, bool isIDispatch, Com::FuncParam& param, wstring& output) |
| void Clear() |
| void RenderFuncDeclaration(const wchar_t* nameSpace, bool earlyBinding, bool isIDispatch, bool includeAllParameters, wstring& output) |
| void RenderFuncDefinition(const wchar_t* nameSpace, bool earlyBinding, bool isIDispatch, const wchar_t* className, bool includeAllParameters, wstring& output) |
| void RenderParameter(int paramIndex, wstring& output) |
| void RenderProperty(const wchar_t* nameSpace, bool earlyBinding, bool isIDispatch, list<Com::FuncInfo >& fi, wstring& output) |
| void RenderReturnedValue(const wstring& returnParamText, wstring& output) |
| ~ FuncInfo() |